package com.xgst.bmg.server.rtmp.messages;


import com.xgst.bmg.server.rtmp.Constants;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: xgstjs-11
 * @CreateTime: 2021-03-09 14:34:03
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Abort extends RtmpControlMessage {

	int csid;

	@Override
	public ByteBuf encodePayload() {
		return Unpooled.buffer(4).writeInt(csid);
	}
	
	@Override
		public int getMsgType() {
			return Constants.MSG_ABORT_MESSAGE;
		}
}
